package com.example.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.R;
import com.example.system.entity.Notice;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 王鹤蒲
 * @since 2023-09-04
 */
public interface INoticeService extends IService<Notice> {

    public R saveNotice(Notice notice);

    public R updateNotice(Notice notice);

    public R delete(Integer id);

    public R deleteBatch(Integer[] ids);

    public R findOne(Integer id);
    public R findAll();

    public R findAllByType(Integer type);

    public R findPage(String title, int currentPage, int pageSize);

    public R importNotice(MultipartFile file);

    public void export(HttpServletResponse httpServletResponse);
}
